import { RMIProxyObject } from "../../Engine/RMI/RMIProxyObject";
import { IAcupointPrx } from "./IAcupointPrx";
import { AMI_IAcupoint_clearSavvyCd } from "./AMI_IAcupoint_clearSavvyCd";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { Outgoing } from "../../Engine/RMI/Outgoing";
import { AMI_IAcupoint_getAcupoint } from "./AMI_IAcupoint_getAcupoint";
import { AMI_IAcupoint_getRoot } from "./AMI_IAcupoint_getRoot";
import { AMI_IAcupoint_getSavvy } from "./AMI_IAcupoint_getSavvy";
import { AMI_IAcupoint_getSavvyEx } from "./AMI_IAcupoint_getSavvyEx";
import { AMI_IAcupoint_reduceUpgradeAcupoint } from "./AMI_IAcupoint_reduceUpgradeAcupoint";
import { AMI_IAcupoint_rootBreakThrough } from "./AMI_IAcupoint_rootBreakThrough";
import { DictStrIntHelper } from "../Public/DictStrIntHelper";
import { AMI_IAcupoint_upgradeAcupoint } from "./AMI_IAcupoint_upgradeAcupoint";
import { AMI_IAcupoint_upgradeRoot } from "./AMI_IAcupoint_upgradeRoot";
import { AMI_IAcupoint_upgradeSavvy } from "./AMI_IAcupoint_upgradeSavvy";
import { AMI_IAcupoint_upgradeSavvyEx } from "./AMI_IAcupoint_upgradeSavvyEx";
type int = number;
//class IAcupointPrxHelper
    
    export  class IAcupointPrxHelper extends RMIProxyObject implements IAcupointPrx
    {
        constructor()
        {
            
            super();name = "IAcupoint";
            return;
        }

        public clearSavvyCd_async(arg1: AMI_IAcupoint_clearSavvyCd): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("clearSavvyCd");
            var loc3=new SerializeStream();
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public getAcupoint_async(arg1: AMI_IAcupoint_getAcupoint, arg2: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("getAcupoint");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public getRoot_async(arg1: AMI_IAcupoint_getRoot, arg2: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("getRoot");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public getSavvy_async(arg1: AMI_IAcupoint_getSavvy, arg2: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("getSavvy");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public getSavvyEx_async(arg1: AMI_IAcupoint_getSavvyEx, arg2: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("getSavvyEx");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public reduceUpgradeAcupoint_async(arg1: AMI_IAcupoint_reduceUpgradeAcupoint, arg2: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("reduceUpgradeAcupoint");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public rootBreakThrough_async(arg1: AMI_IAcupoint_rootBreakThrough, arg2: int, arg3: Map<any, any> /* flash.utils.Dictionary */): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("rootBreakThrough");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            DictStrIntHelper.write(loc3, arg3);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public upgradeAcupoint_async(arg1: AMI_IAcupoint_upgradeAcupoint): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("upgradeAcupoint");
            var loc3=new SerializeStream();
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public upgradeRoot_async(arg1: AMI_IAcupoint_upgradeRoot, arg2: int, arg3: int, arg4: Boolean): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("upgradeRoot");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            loc3.writeInt(arg3);
            loc3.writeBool(arg4);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public upgradeSavvy_async(arg1: AMI_IAcupoint_upgradeSavvy, arg2: int, arg3: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("upgradeSavvy");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            loc3.writeInt(arg3);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public upgradeSavvyEx_async(arg1: AMI_IAcupoint_upgradeSavvyEx, arg2: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("upgradeSavvyEx");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public static /* const */NAME: string="Message.Game.IAcupoint";
    }
